<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>基本列表</title>

  <!-- 引入Vue -->
  <script type="text/javascript" src="/vue/vue.js"></script>

</head>
<body>
  <!-- 创建一个容器 -->
  <div id="app">
    <div v-html="name2"></div>
  </div>

  <script type="text/javascript">
    // 创建一个Vue实例
    new Vue({
      el: '#app',
      data: {
        name2: '<h1>啊哈哈哈<h1>'
      },
    })
  </script>
</body>
</html>